# python4_4.py  
import json  
  
data = {  
    "Student_No": "202302206133",  
    "name": "吴昊",  
    "url": "https://example.com/student/6133"  
}  
  

print("原始字典数据：")  
print(data)  
  

json_data = json.dumps(data, ensure_ascii=False, indent=4)
print("转换为 Json 对象：")  
print(json_data)  
  

with open('data.json', 'w', encoding='utf-8') as file:  
    file.write(json_data)  

with open('data.json', 'r', encoding='utf-8') as file:  
    loaded_data = json.load(file)  
    print("从 data.json 导入的数据：")  
    print(loaded_data)  
  
